﻿using System.Web.Mvc;

namespace XHouseWeb.Controllers
{
    using XHouse.Business.Interfaces;

    public class HomeController : Controller
    {
        private IService18 _service18;
        public HomeController(IService18 service18)
        {
            _service18 = service18;

        }

        public ActionResult Index()
        {
            var flag = _service18.Find18();
            if (flag)
            {
                TempData["18"] = "Encontramos el 18!!!!!";
            }
            else
            {
                TempData["18"] = "";
            }
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
